{extend name="./public/base"/}
{block name="alt"}user上传视频列表{/block}
{block name="alter"}视频列表{/block}
{block name="title"}BangBang用户上传视频列表{/block}
{block name="main"}<div class="row">
                    <div class="col-12">
                        <div class="card">
                            <div class="card-block">
                                <div class="card-body">
                                        <table class="table table-striped  mt-3">
                                            <thead>
                                                <tr>
                                                    <th scope="col"><p class="text-center">状态</p></th>
                                                    <th scope="col"><p class="text-center">序号</p></th>
                                                    <th scope="col"><p class="text-center">视频名称</p></th>
                                                    <th scope="col"><p class="text-center">视频类型</p></th>
                                                    <th scope="col"><p class="text-center">视频海报</p></th>
                                                    <!-- <th style="width: 23%;" scope="col"><p class="text-center">视频简介</p></th> -->
                                                    <th scope="col"><p class="text-center">视频上传时间</p></th>
                                                    <th scope="col"><p class="text-center">上传人</p></th>
                                                    
                                                    <!-- <th scope="col"><p class="text-center">点击量</p></th> -->
                                                  <th scope="col"><p class="text-center">详情</p></th>
                                                    
                                                    <th scope="col"><p class="text-center">操作</p></th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                {volist name="videos" id="video" key="k"}
                                                <tr>
                                                    <td>
                                                        {if condition="$video.vstatus==0"}<p class="text-center text-success">审核通过</p>
                                                        {elseif condition="$video.vstatus==2"/}<p class="text-center" style="color: blue;">待审核</p>
                                                        {else}<p class="text-center text-danger">审核未通过</p>
                                                        {/if}
                                                    </td>
                                                    <td><p class="text-center">{$k+($page-1)*10}</p></td>
                                                
                                                    <td><p class="text-center">{$video.videoname}</p></td>
                                                    
                                                    <td><p class="text-center">{$video.typename}</p></td>
                                                    <td class="text-center">
                                                        <img src="__STATIC__/videopic/{$video.pic}" width="100px" height="70px" >
                                                    </td>
                                                   
                                                     <td><p class="text-center">{$video.uploaddate}</p></td>
                                                      <td><p class="text-center">{$video.uname}</p></td>
                                                     
                                                     
                                                       
                                                        
                                                    <td class="text-center">
                                                        
                                                       <a href="{:url('videodetails',['vid'=>$video.vid])}" class="text-center"><i class="icon-info"></i>&nbsp;查看详情</a>
                                                      </td>
                                      
                                                <td class="text-center">
                                                        
                                                        <div class="btn-group">
    <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown">
        <span class="glyphicon glyphicon-cog">封禁/解封</span>
    </button>
    <ul class="dropdown-menu" role="menu">
        <li>
            {if condition="$video.vstatus==2"}
           &nbsp;<a class="text-success" href="{:url('shield1',['vid'=>$video.vid,'uploadadmin'=>$video.uploadadmin])}">&nbsp;1.您发布的视频包含违法信息</a>
           {else/} <button type="button" class="btn btn-default" disabled="disabled">1.您发布的视频包含违法信息</button>
            {/if}
        </li>

        <li>
             {if condition="$video.vstatus==2"}
           &nbsp;<a class="text-success" href="{:url('shield2',['vid'=>$video.vid,'uploadadmin'=>$video.uploadadmin])}">&nbsp;2.您发布的视频包含诋毁本网站信息</a>
           {else/} <button type="button" class="btn btn-default" disabled="disabled">2.您的评论包含诋毁本网站信息</button>
            {/if}
        </li>
        <li>
            {if condition="$video.vstatus==2"}
           &nbsp;<a class="text-success" href="{:url('shield3',['vid'=>$video.vid,'uploadadmin'=>$video.uploadadmin])}">&nbsp;3.您发布的视频包含辱骂他人信息</a>
           {else/} <button type="button" class="btn btn-default" disabled="disabled">3.您发布的视频包含辱骂他人信息</button>
            {/if}
        </li>
        <li>
            {if condition="$video.vstatus==2"}
           &nbsp;<a class="text-success" href="{:url('shield4',['vid'=>$video.vid,'uploadadmin'=>$video.uploadadmin])}">&nbsp;4.您发布的视频不符合本网站宗旨</a>
           {else/} <button type="button" class="btn btn-default" disabled="disabled">4.您发布的视频不符合本网站宗旨</button>
            {/if}
        </li>
         <li>
             {if condition="$video.vstatus==1"}
           &nbsp;<a class="text-danger" href="{:url('shield5',['vid'=>$video.vid,'uploadadmin'=>$video.uploadadmin])}">&nbsp;5.解除封禁</a>
           {else/} <button type="button" class="btn btn-default" disabled="disabled">5.解除封禁</button>
            {/if}
        </li>
        <li>
             {if condition="$video.vstatus==2"}
           &nbsp;<a class="text-success" href="{:url('shield6',['vid'=>$video.vid,'uploadadmin'=>$video.uploadadmin])}">&nbsp;6.通过审核</a>
           {else/} <button type="button" class="btn btn-default" disabled="disabled">6.通过审核</button>
            {/if}
        </li>
        
    </ul>
</div>
                                                       
                                                    </td>
                                                </tr>
                                                {/volist}
                                                
                                                
                                            </tbody>
                                        </table>
                                       {$videos->render()}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>{/block}